home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / Strong_BS175.ZIP / !StrongBS / 3rdParty / DavidSharp / TRUE>>>1 / !Info next >
Text File  |  1997-06-20  |  914b  |  33 lines

  1. 3rd Party information
  2. #Wrap off
  3. #fh3:&7FFFFFFF to TRUE\>\>\>1 conversion
  4.  
  5. This option will convert the number &7FFFFFFF into the shorter equivalent TRUE>>>1.
  6.  
  7. There is a small problem with this, in that the symbol >>> has a mathematical priority similar to any other
  8. mathematical operation such as + or -. If this number were merely converted, then it could cause errors
  9. to occur in some equations.
  10.  
  11. /Example/
  12.  
  13. {*}PRINT &7FFFFFFF{*}
  14. and
  15. {*}PRINT TRUE>>>1{*}
  16. are equivalent, but
  17. {*}PRINT &7FFFFFFF+1{*}
  18. and
  19. {*}PRINT TRUE>>>1+1{*}
  20. are not!
  21.  
  22. To prevent this problem from occuring, the code checks for the existence of a mathematical
  23. expression in which this problem may occur, and if it finds one, replaces {*}&7FFFFFFF{*} with
  24. {*}(TRUE>>>1){*} and so in the above example would give:
  25.  
  26. {*}PRINT (TRUE>>>1)+1{*}
  27.  
  28. which still gives a small saving in file size.
  29.  
  30. #Line
  31. #fh4
  32. #align centre
  33. © David Sharp v1.20 (11/04/1997)